<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>dsitxss: xdsitxss_intr_example.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">dsitxss
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="pages.html"><span>Examples</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xdsitxss__intr__example_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xdsitxss_intr_example.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains a design example using the <a class="el" href="struct_x_dsi_tx_ss.html" title="The XDsiTxSs driver instance data. ">XDsiTxSs</a> driver with interrupts. </p>
<p>This will provide interrupts for pixel under run and undefined data type</p>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver Who Date    Changes
</p>
<hr/>
<p>
1.0 ram 11/2/16 Initial Release for MIPI DSI TX subsystem
1.1 ms  01/23/17 Modified xil_printf statement in main function to
                 ensure that "Successfully ran" and "Failed" strings
                 are available in all examples. This is a fix for
                 CR-965028.
    ms  04/05/17 Added tabspace for return statements in functions for
                 proper documentation while generating doxygen.
2.4 ml  11/15/23 Fix compilation errors reported with -std=c2x compiler flag
</pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:af332a23bd0cd610cf1e95df34b70c998"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdsitxss__intr__example_8c.html#af332a23bd0cd610cf1e95df34b70c998">DsiTxSs_IntrExample</a> (u32 DeviceId)</td></tr>
<tr class="memdesc:af332a23bd0cd610cf1e95df34b70c998"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is the main entry point for the interrupt example using the DsiTxSs driver.  <a href="#af332a23bd0cd610cf1e95df34b70c998">More...</a><br/></td></tr>
<tr class="separator:af332a23bd0cd610cf1e95df34b70c998"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac0b25d125200252072df7ccfc5931bb7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dsitxss.html#gac0b25d125200252072df7ccfc5931bb7">XDsiTxSs_IntrHandler</a> (void *InstancePtr)</td></tr>
<tr class="memdesc:gac0b25d125200252072df7ccfc5931bb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is the interrupt handler for the MIPI DSI Tx Subsystem.  <a href="group__dsitxss.html#gac0b25d125200252072df7ccfc5931bb7">More...</a><br/></td></tr>
<tr class="separator:gac0b25d125200252072df7ccfc5931bb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4b5639796dfc2bd954a848268daa116d"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dsitxss.html#ga4b5639796dfc2bd954a848268daa116d">XDsiTxSs_SetCallback</a> (<a class="el" href="struct_x_dsi_tx_ss.html">XDsiTxSs</a> *InstancePtr, u32 HandlerType, void *CallbackFunc, void *CallbackRef)</td></tr>
<tr class="memdesc:ga4b5639796dfc2bd954a848268daa116d"><td class="mdescLeft">&#160;</td><td class="mdescRight">This routine installs an asynchronous callback function for the given HandlerType:  <a href="group__dsitxss.html#ga4b5639796dfc2bd954a848268daa116d">More...</a><br/></td></tr>
<tr class="separator:ga4b5639796dfc2bd954a848268daa116d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafb6ca1158027263a71f21d2d79b0bfea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dsitxss.html#gafb6ca1158027263a71f21d2d79b0bfea">XDsiTxSs_SetGlobalInterrupt</a> (void *InstancePtr)</td></tr>
<tr class="memdesc:gafb6ca1158027263a71f21d2d79b0bfea"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function will enable the interrupts present in the interrupt mask passed onto the function.  <a href="group__dsitxss.html#gafb6ca1158027263a71f21d2d79b0bfea">More...</a><br/></td></tr>
<tr class="separator:gafb6ca1158027263a71f21d2d79b0bfea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab2aaa6f7509b1c98adf63e374cb2bdeb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dsitxss.html#gab2aaa6f7509b1c98adf63e374cb2bdeb">XDsiTxSs_InterruptEnable</a> (void *InstancePtr, u32 Mask)</td></tr>
<tr class="memdesc:gab2aaa6f7509b1c98adf63e374cb2bdeb"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function will enable the interrupts present in the interrupt mask passed onto the function.  <a href="group__dsitxss.html#gab2aaa6f7509b1c98adf63e374cb2bdeb">More...</a><br/></td></tr>
<tr class="separator:gab2aaa6f7509b1c98adf63e374cb2bdeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23cb753579e8afad024185d86226b5ff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdsitxss__intr__example_8c.html#a23cb753579e8afad024185d86226b5ff">DsiTxSs_PixelUnderrunEventHandler</a> (void *CallbackRef, u32 Mask)</td></tr>
<tr class="memdesc:a23cb753579e8afad024185d86226b5ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is called when a Packet level error event is received by the MIPI DSI Tx Subsystem core.  <a href="#a23cb753579e8afad024185d86226b5ff">More...</a><br/></td></tr>
<tr class="separator:a23cb753579e8afad024185d86226b5ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbbbc49a53627d886970e27b5b05b375"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdsitxss__intr__example_8c.html#acbbbc49a53627d886970e27b5b05b375">DsiTxSs_UnSupportDataEventHandler</a> (void *CallbackRef, u32 Mask)</td></tr>
<tr class="memdesc:acbbbc49a53627d886970e27b5b05b375"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is called when a DPHY level error event is received by the MIPI DSI Rx Subsystem core.  <a href="#acbbbc49a53627d886970e27b5b05b375">More...</a><br/></td></tr>
<tr class="separator:acbbbc49a53627d886970e27b5b05b375"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85f22fe4bec2f2b762722fc046dab09a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdsitxss__intr__example_8c.html#a85f22fe4bec2f2b762722fc046dab09a">DsiTxSs_CmdQFIFOFullEventHandler</a> (void *CallbackRef, u32 Mask)</td></tr>
<tr class="memdesc:a85f22fe4bec2f2b762722fc046dab09a"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is called when a Command Queue FIFO full error event is received by the MIPI DSI Tx Subsystem core.  <a href="#a85f22fe4bec2f2b762722fc046dab09a">More...</a><br/></td></tr>
<tr class="separator:a85f22fe4bec2f2b762722fc046dab09a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93bbc4432d6da3cbcf5873a9f9be24fd"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdsitxss__intr__example_8c.html#a93bbc4432d6da3cbcf5873a9f9be24fd">main</a> ()</td></tr>
<tr class="memdesc:a93bbc4432d6da3cbcf5873a9f9be24fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is the main function for <a class="el" href="struct_x_dsi_tx_ss.html" title="The XDsiTxSs driver instance data. ">XDsiTxSs</a> interrupt example.  <a href="#a93bbc4432d6da3cbcf5873a9f9be24fd">More...</a><br/></td></tr>
<tr class="separator:a93bbc4432d6da3cbcf5873a9f9be24fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa93f4f357d4911b56121f95a2917cd1a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdsitxss__intr__example_8c.html#aa93f4f357d4911b56121f95a2917cd1a">Delay</a> (u32 Seconds)</td></tr>
<tr class="memdesc:aa93f4f357d4911b56121f95a2917cd1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">For Microblaze we use an assembly loop that is roughly the same regardless of optimization level, although caches and memory access time can make the delay vary.  <a href="#aa93f4f357d4911b56121f95a2917cd1a">More...</a><br/></td></tr>
<tr class="separator:aa93f4f357d4911b56121f95a2917cd1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac21cb0eded54d8244c8d30ba84d13878"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xdsitxss__intr__example_8c.html#ac21cb0eded54d8244c8d30ba84d13878">SetupInterruptSystem</a> (<a class="el" href="struct_x_dsi_tx_ss.html">XDsiTxSs</a> *DsiTxSsPtr)</td></tr>
<tr class="memdesc:ac21cb0eded54d8244c8d30ba84d13878"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function setups the interrupt system such that interrupts can occur for the DSI device.  <a href="#ac21cb0eded54d8244c8d30ba84d13878">More...</a><br/></td></tr>
<tr class="separator:ac21cb0eded54d8244c8d30ba84d13878"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="aa93f4f357d4911b56121f95a2917cd1a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Delay </td>
          <td>(</td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Seconds</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>For Microblaze we use an assembly loop that is roughly the same regardless of optimization level, although caches and memory access time can make the delay vary. </p>
<p>Just keep in mind that after resetting or updating the PHY modes, the PHY typically needs time to recover.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Number</td><td>of seconds to sleep</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None </dd></dl>

<p>Referenced by <a class="el" href="xdsitxss__intr__example_8c.html#af332a23bd0cd610cf1e95df34b70c998">DsiTxSs_IntrExample()</a>.</p>

</div>
</div>
<a class="anchor" id="a85f22fe4bec2f2b762722fc046dab09a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DsiTxSs_CmdQFIFOFullEventHandler </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>CallbackRef</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is called when a Command Queue FIFO full error event is received by the MIPI DSI Tx Subsystem core. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">CallbackRef</td><td>is a pointer to the DsiTxSs instance.</td></tr>
    <tr><td class="paramname">Mask</td><td>of interrupt which caused this event</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>Use the DsiTxSs_CmdQFIFOFullEventHandler driver function to set this function as the handler for Command Queue FIFO Full error event. </dd></dl>

<p>Referenced by <a class="el" href="xdsitxss__intr__example_8c.html#af332a23bd0cd610cf1e95df34b70c998">DsiTxSs_IntrExample()</a>, and <a class="el" href="xdsitxss__intr__example_8c.html#ac21cb0eded54d8244c8d30ba84d13878">SetupInterruptSystem()</a>.</p>

</div>
</div>
<a class="anchor" id="af332a23bd0cd610cf1e95df34b70c998"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 DsiTxSs_IntrExample </td>
          <td>(</td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>DeviceId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is the main entry point for the interrupt example using the DsiTxSs driver. </p>
<p>This function will set up the system with interrupts handlers.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">DeviceId</td><td>is the unique device ID of the MIPI DSI Subsystem core.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_FAILURE if the system setup failed.</li>
<li>XST_SUCCESS should never return since this function, if setup was successful, is blocking.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>If system setup was successful, this function is blocking in order to illustrate interrupt handling taking place for HPD events. </dd></dl>

<p>References <a class="el" href="struct_x_dsi_tx_ss___config.html#a7d585195086fad6ffb7623bbf1881d43">XDsiTxSs_Config::BaseAddr</a>, <a class="el" href="xdsitxss__intr__example_8c.html#aa93f4f357d4911b56121f95a2917cd1a">Delay()</a>, <a class="el" href="xdsitxss__intr__example_8c.html#a85f22fe4bec2f2b762722fc046dab09a">DsiTxSs_CmdQFIFOFullEventHandler()</a>, <a class="el" href="xdsitxss__intr__example_8c.html#a23cb753579e8afad024185d86226b5ff">DsiTxSs_PixelUnderrunEventHandler()</a>, <a class="el" href="xdsitxss__intr__example_8c.html#acbbbc49a53627d886970e27b5b05b375">DsiTxSs_UnSupportDataEventHandler()</a>, <a class="el" href="xdsitxss__intr__example_8c.html#ac21cb0eded54d8244c8d30ba84d13878">SetupInterruptSystem()</a>, <a class="el" href="group__dsitxss.html#gaa4193394015188a834eeeee8e5da3e40">XDsiTxSs_CfgInitialize()</a>, <a class="el" href="group__dsitxss.html#ga56e3396892da2261b57bdf0d0154a232">XDSITXSS_HANDLER_UNSUPPORT_DATATYPE</a>, <a class="el" href="group__dsitxss.html#gab2aaa6f7509b1c98adf63e374cb2bdeb">XDsiTxSs_InterruptEnable()</a>, <a class="el" href="group__dsitxss.html#gac0b25d125200252072df7ccfc5931bb7">XDsiTxSs_IntrHandler()</a>, <a class="el" href="group__dsitxss.html#ga9385832ac1a54eafe16fd05bd5ca2806">XDsiTxSs_LookupConfig()</a>, <a class="el" href="group__dsitxss.html#ga5c2a0c949b32000d56edf503bcee3b48">XDsiTxSs_SelfTest()</a>, and <a class="el" href="group__dsitxss.html#ga4b5639796dfc2bd954a848268daa116d">XDsiTxSs_SetCallback()</a>.</p>

<p>Referenced by <a class="el" href="xdsitxss__intr__example_8c.html#a93bbc4432d6da3cbcf5873a9f9be24fd">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a23cb753579e8afad024185d86226b5ff"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DsiTxSs_PixelUnderrunEventHandler </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>CallbackRef</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is called when a Packet level error event is received by the MIPI DSI Tx Subsystem core. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">CallbackRef</td><td>is a pointer to the DsiTxSs instance.</td></tr>
    <tr><td class="paramname">Mask</td><td>of interrupt which caused this event</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>Use the DsiTxSs_PixelUnderrunEventHandler driver function to set this function as the handler for Packet level error event. </dd></dl>

<p>Referenced by <a class="el" href="xdsitxss__intr__example_8c.html#af332a23bd0cd610cf1e95df34b70c998">DsiTxSs_IntrExample()</a>, and <a class="el" href="xdsitxss__intr__example_8c.html#ac21cb0eded54d8244c8d30ba84d13878">SetupInterruptSystem()</a>.</p>

</div>
</div>
<a class="anchor" id="acbbbc49a53627d886970e27b5b05b375"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DsiTxSs_UnSupportDataEventHandler </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>CallbackRef</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is called when a DPHY level error event is received by the MIPI DSI Rx Subsystem core. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">CallbackRef</td><td>is a pointer to the DsiTxSs instance.</td></tr>
    <tr><td class="paramname">Mask</td><td>of interrupt which caused this event</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>Use the DsiTxSs_UnSupportDataEventHandler driver function to set this function as the handler for Unsupported data error event. </dd></dl>

<p>Referenced by <a class="el" href="xdsitxss__intr__example_8c.html#af332a23bd0cd610cf1e95df34b70c998">DsiTxSs_IntrExample()</a>, and <a class="el" href="xdsitxss__intr__example_8c.html#ac21cb0eded54d8244c8d30ba84d13878">SetupInterruptSystem()</a>.</p>

</div>
</div>
<a class="anchor" id="a93bbc4432d6da3cbcf5873a9f9be24fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 main </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This is the main function for <a class="el" href="struct_x_dsi_tx_ss.html" title="The XDsiTxSs driver instance data. ">XDsiTxSs</a> interrupt example. </p>
<p>If the DsiTxSs_IntrExample function which sets up the system succeeds, this function will wait for the interrupts. Notify the events</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">None.</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_FAILURE if the interrupt example was unsuccessful.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>Unless setup failed, main will never return since DsiTxSs_IntrExample is blocking (it is waiting on interrupts for Hot-Plug-Detect (HPD) events. </dd></dl>

<p>References <a class="el" href="xdsitxss__intr__example_8c.html#af332a23bd0cd610cf1e95df34b70c998">DsiTxSs_IntrExample()</a>.</p>

</div>
</div>
<a class="anchor" id="ac21cb0eded54d8244c8d30ba84d13878"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 SetupInterruptSystem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_dsi_tx_ss.html">XDsiTxSs</a> *&#160;</td>
          <td class="paramname"><em>DsiTxSsPtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function setups the interrupt system such that interrupts can occur for the DSI device. </p>
<p>This function is application specific since the actual system may or may not have an interrupt controller. The DSI could be directly connected to a processor without an interrupt controller. The user should modify this function to fit the application.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">DsiTxSsPtr</td><td>contains a pointer to the instance of the DSI component which is going to be connected to the interrupt controller.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if successfully setup the interrupt</li>
<li>XST_FAILURE.failure to setup the interrupt</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="xdsitxss__intr__example_8c.html#a85f22fe4bec2f2b762722fc046dab09a">DsiTxSs_CmdQFIFOFullEventHandler()</a>, <a class="el" href="xdsitxss__intr__example_8c.html#a23cb753579e8afad024185d86226b5ff">DsiTxSs_PixelUnderrunEventHandler()</a>, <a class="el" href="xdsitxss__intr__example_8c.html#acbbbc49a53627d886970e27b5b05b375">DsiTxSs_UnSupportDataEventHandler()</a>, <a class="el" href="group__dsitxss.html#ga56e3396892da2261b57bdf0d0154a232">XDSITXSS_HANDLER_UNSUPPORT_DATATYPE</a>, <a class="el" href="group__dsitxss.html#gac0b25d125200252072df7ccfc5931bb7">XDsiTxSs_IntrHandler()</a>, <a class="el" href="group__dsitxss.html#ga4b5639796dfc2bd954a848268daa116d">XDsiTxSs_SetCallback()</a>, and <a class="el" href="group__dsitxss.html#gafb6ca1158027263a71f21d2d79b0bfea">XDsiTxSs_SetGlobalInterrupt()</a>.</p>

<p>Referenced by <a class="el" href="xdsitxss__intr__example_8c.html#af332a23bd0cd610cf1e95df34b70c998">DsiTxSs_IntrExample()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
